/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gui;

import java.awt.GridLayout;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTabbedPane;


/**
 *
 * @author Idyal User
 */
public class MonCompteALLTab {
 private    MonCompte infoGen=new MonCompte();
    private static void createAndShowGUI() {
        final JFrame frame = new JFrame("Split Pane Example");

        frame.setSize(500, 300);

        frame.setVisible(true);

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.getContentPane().setLayout(new GridLayout(1, 1));

        JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);

        tabbedPane.addTab("Info. General",new MonCompte());

        Icon icon = new ImageIcon("icon.gif");

        tabbedPane.addTab("Mes Projets", icon, new JLabel("This is tab 2"));

        String tooltip = "conges";

        tabbedPane.addTab("Mes Congés", icon, new JLabel("This is tab 3"), tooltip);
     
     frame.getContentPane().add(tabbedPane);

    }

    public static void main(String[] args) {

  javax.swing.SwingUtilities.invokeLater(new Runnable() {

public void run() {

    createAndShowGUI();

}
  });
          }
}


